#include<stdio.h>
#include"array.h"
void sort(int a[], int n)
{
    int i,j,t;
    for(i=0; i<n-1; i++)
        for(j=0; j<n-i-1; j++)
            if(a[j]>a[j+1])
                t=a[j], a[j]=a[j+1],a[j+1]=t;
}
int main()
{
    int a[] = { 5, 4, 1, 2, 9, 7, 8, 6, 0, 3 };
    int n = sizeof(a) / sizeof(a[0]);
    print(a, n);
    sort(a, n);
    print(a, n);

    return 0;

}
